import global from "./global.js"

const DetailChild = {
    name:'detail-child',
    template:`
    <div>
        <div>DetailChild--{{title}}</div>
        </div>
        `,
        // <detail-child></detail-child>
    data(){
        return {
            title:'hello'
        }
    },
    injectL:['name','rating','changeName'],
    
    mounted(){
        // this.changeName();
        console.log("DetailChild mounted");
        global.$emit('message','hello');
    }
}

export default DetailChild